import request from '@/utils/request';
import type { UserInfo } from '@/type/UserType';
import type { ResponseType } from '@/type/ResponseType';

enum Enum {
  fetchUserInfoAPI = '/patient/myUser'
}

/**
 * 获取用户信息的接口
 * */
export const fetchUserInfoAPI = () => request.get<UserInfo, ResponseType<UserInfo>>(Enum.fetchUserInfoAPI);